package com.gitee.xcfyl.simplehttpserver.servlet;

import com.gitee.xcfyl.simplehttpserver.io.HttpRequest;
import com.gitee.xcfyl.simplehttpserver.io.HttpResponse;

/**
 * @author 西城风雨楼
 */
public class SecondServlet extends HttpServlet {
    @Override
    public void doGet(HttpRequest req, HttpResponse res) throws Exception {
        res.write(req.getUrl() + "请求被分发到SecondServlet处理");
    }

    @Override
    public void doPost(HttpRequest req, HttpResponse res) throws Exception {
        this.doGet(req, res);
    }
}
